package com.zdya.combatdocuments.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zdya.combatdocuments.entity.User;
import com.zdya.combatdocuments.entity.vo.ResultVo;
import com.zdya.combatdocuments.entity.vo.UserLoginVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.LinkedHashMap;
import java.util.List;


public interface UserService extends IService<User> {
    ResultVo<UserLoginVo> login(User userEntity);

    ResultVo<LinkedHashMap<String, List<User>>> getUserAndName(Long id, String name);

    ResultVo<Object> updateUser(User userEntity);

    ResultVo<User> getDetails(String username);

    ResultVo upload(Long id, MultipartFile file, HttpServletRequest request);

    ResultVo saveUser(User user);

    ResultVo logout();

    ResultVo findMacAndCpu();

    ResultVo uploadFile(MultipartFile file);
}
